package com.camapp.file2image.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Button btn1 = (Button) findViewById(R.id.button1);
		btn1.setOnClickListener(this);
		Button btn2 = (Button) findViewById(R.id.button2);
		btn2.setOnClickListener(this);
		Button btn3 = (Button) findViewById(R.id.button3);
		btn3.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch(v.getId()) {
			case R.id.button1:
				startActivity(new Intent(this, ColorModifyActivity.class));
				break;
			case R.id.button2:
				startActivity(new Intent(this, SelectAndClipActivity.class));
				break;
			case R.id.button3:
				startActivity(new Intent("com.camapp.file2image.camera"));
				break;
		}
	}
}
